package cn.xiaopengstack.infrastructure.persistent.dao;

import cn.xiaopengstack.infrastructure.persistent.po.CrowdTagsDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author jiangyangang
* @description 针对表【crowd_tags_detail(人群标签明细)】的数据库操作Mapper
* @createDate 2025-10-13 16:51:01
* @Entity cn.xiaopengstack.infrastructure.persistent.po.CrowdTagsDetail
*/
@Mapper
public interface ICrowdTagsDetailDao {

    int deleteByPrimaryKey(Long id);

    int insert(CrowdTagsDetail record);

    int insertSelective(CrowdTagsDetail record);

    CrowdTagsDetail selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CrowdTagsDetail record);

    int updateByPrimaryKey(CrowdTagsDetail record);

    /**
     * 查询人群标签详情
     * @param tagId
     * @param userId
     * @return
     */
    CrowdTagsDetail queryUserTagDetail(@Param("tagId") String tagId, @Param("userId") String userId);
}
